package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.FxOrderMapper;
import com.qj.yantaishan.domain.FxOrder;
import com.qj.yantaishan.service.IFxOrderService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 分销订单Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class FxOrderServiceImpl    extends ServiceImpl<FxOrderMapper, FxOrder>  implements IFxOrderService
{
    @Autowired
    private FxOrderMapper fxOrderMapper;

    /**
     * 查询分销订单
     * 
     * @param fxOrderId 分销订单主键
     * @return 分销订单
     */
    @Override
    public FxOrder selectFxOrderByFxOrderId(Integer fxOrderId)
    {
        return fxOrderMapper.selectFxOrderByFxOrderId(fxOrderId);
    }

    /**
     * 查询分销订单列表
     * 
     * @param fxOrder 分销订单
     * @return 分销订单
     */
    @Override
    public List<FxOrder> selectFxOrderList(FxOrder fxOrder)
    {
        return fxOrderMapper.selectFxOrderList(fxOrder);
    }

    /**
     * 新增分销订单
     * 
     * @param fxOrder 分销订单
     * @return 结果
     */
    @Override
    public int insertFxOrder(FxOrder fxOrder)
    {
        return fxOrderMapper.insertFxOrder(fxOrder);
    }

    /**
     * 修改分销订单
     * 
     * @param fxOrder 分销订单
     * @return 结果
     */
    @Override
    public int updateFxOrder(FxOrder fxOrder)
    {
        return fxOrderMapper.updateFxOrder(fxOrder);
    }

    /**
     * 批量删除分销订单
     * 
     * @param fxOrderIds 需要删除的分销订单主键
     * @return 结果
     */
    @Override
    public int deleteFxOrderByFxOrderIds(String fxOrderIds)
    {
        return fxOrderMapper.deleteFxOrderByFxOrderIds(Convert.toStrArray(fxOrderIds));
    }

    /**
     * 删除分销订单信息
     * 
     * @param fxOrderId 分销订单主键
     * @return 结果
     */
    @Override
    public int deleteFxOrderByFxOrderId(Integer fxOrderId)
    {
        return fxOrderMapper.deleteFxOrderByFxOrderId(fxOrderId);
    }
}
